package cn.kgm.user.dto.dto;

import cn.kgm.core.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotNull;

/**
 * # 技术改变自己 #
 * 用户可用登录类型表
 * @author Kappi
 * @date   2024-04-10 21:13:04
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserLoginTypeSaveDTO", description = "用户可用登录类型表")
public class UserLoginTypeSaveDTO extends Entity<Long> {

    /**
     * 用户ID[user.id]
     */
    @ApiModelProperty(value = "用户ID[user.id]", position = 2)
    @NotNull(message = "用户ID[user.id]不能为空")
    private Long userId;

    /**
     * 权限类型:[SYS,系统用户];[CLIENT,app用户];[CUSTOMER,公司客户]
     */
    @ApiModelProperty(value = "权限类型:[SYS,系统用户];[CLIENT,app用户];[CUSTOMER,公司客户]", position = 3)
    @NotNull(message = "权限类型:[SYS,系统用户];[CLIENT,app用户];[CUSTOMER,公司客户]不能为空")
    private String type;

}
